
import treeHtml from './tree.html';
import app from '../../index.js';
import * as d3 from 'd3';

export default{
  init:function () {
    app.config(['$stateProvider', function ($stateProvider) {
      $stateProvider.state('tree', {
        url: '/tree',
        template: treeHtml
      });
    }]);
    app.controller('treeController', ["$scope","$http",function ($scope,$http) {
      $scope.title = 'tree';
      $http.get('/api/data').then(function (d) {
        console.log(d);

      });
    }]);
  }

}

